-
Notifications
You must be signed in to change notification settings - Fork 23
test: add legacy descriptor tests #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
test: add legacy descriptor tests #214
Conversation
Pull Request Test Coverage Report for Build 15148305686Details
💛 - Coveralls |
9f667ca
to
5f9d18c
Compare
5f9d18c
to
89643fb
Compare
89643fb
to
71ae907
Compare
Side note: I think bdk_wallet/wallet/tests/wallet.rs Lines 778 to 785 in 7cdc985
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 71ae907
71ae907
to
80c2752
Compare
Should I fix this clippy warning? It's unrelated.
|
I would say go ahead and change |
dd31471
to
a5d1338
Compare
@ValuedMammal fixed. |
It looks good overall, tests are passing for me. |
When I updated to a5d1338, the tests failed locally because the compiler was using
I temporarily updated the version to 0.32.6, and after that, the compiler used the new version, and the tests passed. I'm uncertain if it's ideal to upgrade to 0.32.6, and I'm curious if anyone else has experienced the same issue. |
In a1d58c3: fix: clippy Just noting that I don't think this is actually needed until we update the rust-version of the repo to rust 1.86. But I don't see a problem with including the change anyway. |
Yes, no harm in just preemptively adding this though. |
Yeah, my linter and CI were complaining so I updated it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK a5d1338
It's looking good to me, and the tests are green! I'll do another round of review on the macros.
tACK a5d1338 nit: Considering how large the |
a5d1338
to
a81617d
Compare
Rebased to trigger CI. |
Description
This PR closes #134 and is a revival of bitcoindevkit/bdk#1130, which adds the following tests:
test_legacy_bump_fee_no_change_add_input_and_change()
test_legacy_bump_fee_add_input()
test_legacy_bump_fee_drain_wallet()
test_legacy_bump_fee_zero_abs()
test_legacy_create_tx_custom_sighash()
test_legacy_create_tx_default_sighash()
test_legacy_create_tx_absolute_high_fee()
test_legacy_create_tx_absolute_zero_fee()
test_legacy_create_tx_absolute_fee()
test_legacy_create_tx_custom_fee_rate()
test_legacy_get_funded_wallet_tx_fee_rate()
Changelog:
assert_fee_rate_legacy!
macro for legacy transactions.check_fee!
macro now returnsAmount
instead ofResult<Amount>
.wallet.sent_and_received
got destructured to(sent, received)
instead ofsent_and_received.{0,1}
.SwapTweakedKeypair::to_inner()
forTweakedKeypair::to_keypair()
.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committing